package common;

import java.io.Serializable;

public class Tweet implements Serializable {

	private long id;
	private String name;
	private String screenname;
	private String imageURL;
	private String userURL;
	private String msg;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getScreenname() {
		return screenname;
	}

	public void setScreenname(String screenname) {
		this.screenname = screenname;
	}

	public String getImageURL() {
		return imageURL;
	}

	public void setImageURL(String imageURL) {
		this.imageURL = imageURL;
	}

	public String getUserURL() {
		return userURL;
	}

	public void setUserURL() {
		this.userURL = "http://twitter.com/" + screenname;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Tweet() {
		
	}

	public String toString()
	 { 
		 String ret; 
		 ret =
	 " <img src='"+this.imageURL+"' width='30' height='30'> " +
	 "<b> <a href='"+this.userURL+"'> "+this.screenname+"</b></a>  " + this.msg +
	 "<br><br><hr><br>"; 
		 return(ret); 
	}
}
